package com.ruoyi.mall.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分销商列对象 mall_member_user_distributor
 * 
 * @author ruoyi
 * @date 2022-03-15
 */
public class MallMemberUserDistributor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatar;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 总流水 */
    @Excel(name = "总流水")
    private BigDecimal allMoney;

    /** 推荐人ID */
    @Excel(name = "推荐人ID")
    private Long introUser;

    /** 推荐人信息 */
    @Excel(name = "推荐人信息")
    private String introUserInfo;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal money;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private String createAt;

    /** 删除标记：0-正常 1-删除 */
    private Integer delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAllMoney(BigDecimal allMoney) 
    {
        this.allMoney = allMoney;
    }

    public BigDecimal getAllMoney() 
    {
        return allMoney;
    }
    public void setIntroUser(Long introUser) 
    {
        this.introUser = introUser;
    }

    public Long getIntroUser() 
    {
        return introUser;
    }
    public void setIntroUserInfo(String introUserInfo) 
    {
        this.introUserInfo = introUserInfo;
    }

    public String getIntroUserInfo() 
    {
        return introUserInfo;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setCreateAt(String createAt) 
    {
        this.createAt = createAt;
    }

    public String getCreateAt() 
    {
        return createAt;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("avatar", getAvatar())
            .append("name", getName())
            .append("phone", getPhone())
            .append("allMoney", getAllMoney())
            .append("introUser", getIntroUser())
            .append("introUserInfo", getIntroUserInfo())
            .append("money", getMoney())
            .append("createAt", getCreateAt())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
